/*!
 * \file	shell_config.h
 * \brief	Header file for configuration of the shell
 * \author	Alexis Lucazeau - lucaze_b@epitech.eu
 * \version	1.0
 * \date	10/23/2010 08:11:17 PM
 */

#ifndef         CONFIG_H__
# define        CONFIG_H__

#include <fcntl.h>

/* IO files */
# define INPUT_FILE "input.swp"
# define OUTPUT_FILE "output.swp"

/* options structure */
typedef struct  s_options
{
    char        *shell;
    char        *shellcmd;
    char        *input;
    char        *output;
}               t_options;

/* Error strings */
# define STR_TOO_MANY_ARGS  "Too many arguments.\n"

/* Read / Write buffer size */
# define BUFF_SIZE          1024

/* options.c */
int             get_options(int argc, char **argv, char **envp, t_options *options);
void            print_usage(char *bin_name);

/* fifo_files.c */
int             create_fifo_file(char *name, mode_t mode);

#endif          /* CONFIG_H__ */
